package com.xjtu.duansheli.service;

import com.xjtu.duansheli.entity.ProductCommentsInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjtu.duansheli.entity.ProductInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 漩涡鸣人
 * @since 2020-10-24
 */
public interface ProductCommentsInfoService extends IService<ProductCommentsInfo> {
    public List<ProductCommentsInfo> getAllProductCom(int current, int size);
    public ProductCommentsInfo getProductComByid(Long cid);
    public int addProductCom(ProductCommentsInfo productCom);
    public int updateProductCom(ProductCommentsInfo productCom);
    public int deleteProductCom(Long pid);
    public List<ProductCommentsInfo> getProductComBypid(Long pid);
    public List<ProductCommentsInfo> getProductComByaid(Long aid);
    public List<ProductCommentsInfo> getProductComByparentId(Long paid);
    public int getTotal();
}
